package access;

import temp.Father1;
import static util.Print.*;


public class Exercise4 {
  
  public static void main(String[] args) {
    
//    Child1 child1 = new Child1();
    
//    child1.f();  //can not be executed because of "protected";
//    print(child1.i);  // can not be executed because of the same reason
    
    Child2 child2 = new Child2();
    
    child2.f();
    print(child2.i);
    
  }

}

class Child1 extends Father1 {
  
}

class Child2 extends Father2 {
  
}

